package com.macro.mall.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UmsMemberLevelChangeHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UmsMemberLevelChangeHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNull() {
            addCriterion("store_id is null");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNotNull() {
            addCriterion("store_id is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIdEqualTo(Long value) {
            addCriterion("store_id =", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotEqualTo(Long value) {
            addCriterion("store_id <>", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThan(Long value) {
            addCriterion("store_id >", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThanOrEqualTo(Long value) {
            addCriterion("store_id >=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThan(Long value) {
            addCriterion("store_id <", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThanOrEqualTo(Long value) {
            addCriterion("store_id <=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIn(List<Long> values) {
            addCriterion("store_id in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotIn(List<Long> values) {
            addCriterion("store_id not in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdBetween(Long value1, Long value2) {
            addCriterion("store_id between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotBetween(Long value1, Long value2) {
            addCriterion("store_id not between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdIsNull() {
            addCriterion("update_before_member_level_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdIsNotNull() {
            addCriterion("update_before_member_level_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdEqualTo(Long value) {
            addCriterion("update_before_member_level_id =", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdNotEqualTo(Long value) {
            addCriterion("update_before_member_level_id <>", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdGreaterThan(Long value) {
            addCriterion("update_before_member_level_id >", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("update_before_member_level_id >=", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdLessThan(Long value) {
            addCriterion("update_before_member_level_id <", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdLessThanOrEqualTo(Long value) {
            addCriterion("update_before_member_level_id <=", value, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdIn(List<Long> values) {
            addCriterion("update_before_member_level_id in", values, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdNotIn(List<Long> values) {
            addCriterion("update_before_member_level_id not in", values, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdBetween(Long value1, Long value2) {
            addCriterion("update_before_member_level_id between", value1, value2, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberLevelIdNotBetween(Long value1, Long value2) {
            addCriterion("update_before_member_level_id not between", value1, value2, "updateBeforeMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdIsNull() {
            addCriterion("update_after_member_level_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdIsNotNull() {
            addCriterion("update_after_member_level_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdEqualTo(Long value) {
            addCriterion("update_after_member_level_id =", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdNotEqualTo(Long value) {
            addCriterion("update_after_member_level_id <>", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdGreaterThan(Long value) {
            addCriterion("update_after_member_level_id >", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("update_after_member_level_id >=", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdLessThan(Long value) {
            addCriterion("update_after_member_level_id <", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdLessThanOrEqualTo(Long value) {
            addCriterion("update_after_member_level_id <=", value, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdIn(List<Long> values) {
            addCriterion("update_after_member_level_id in", values, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdNotIn(List<Long> values) {
            addCriterion("update_after_member_level_id not in", values, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdBetween(Long value1, Long value2) {
            addCriterion("update_after_member_level_id between", value1, value2, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberLevelIdNotBetween(Long value1, Long value2) {
            addCriterion("update_after_member_level_id not between", value1, value2, "updateAfterMemberLevelId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeIsNull() {
            addCriterion("member_start_time is null");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeIsNotNull() {
            addCriterion("member_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeEqualTo(Date value) {
            addCriterion("member_start_time =", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeNotEqualTo(Date value) {
            addCriterion("member_start_time <>", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeGreaterThan(Date value) {
            addCriterion("member_start_time >", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("member_start_time >=", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeLessThan(Date value) {
            addCriterion("member_start_time <", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("member_start_time <=", value, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeIn(List<Date> values) {
            addCriterion("member_start_time in", values, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeNotIn(List<Date> values) {
            addCriterion("member_start_time not in", values, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeBetween(Date value1, Date value2) {
            addCriterion("member_start_time between", value1, value2, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andMemberStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("member_start_time not between", value1, value2, "memberStartTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeIsNull() {
            addCriterion("update_before_member_end_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeIsNotNull() {
            addCriterion("update_before_member_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeEqualTo(Date value) {
            addCriterion("update_before_member_end_time =", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeNotEqualTo(Date value) {
            addCriterion("update_before_member_end_time <>", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeGreaterThan(Date value) {
            addCriterion("update_before_member_end_time >", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_before_member_end_time >=", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeLessThan(Date value) {
            addCriterion("update_before_member_end_time <", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_before_member_end_time <=", value, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeIn(List<Date> values) {
            addCriterion("update_before_member_end_time in", values, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeNotIn(List<Date> values) {
            addCriterion("update_before_member_end_time not in", values, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeBetween(Date value1, Date value2) {
            addCriterion("update_before_member_end_time between", value1, value2, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateBeforeMemberEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_before_member_end_time not between", value1, value2, "updateBeforeMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeIsNull() {
            addCriterion("update_after_member_end_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeIsNotNull() {
            addCriterion("update_after_member_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeEqualTo(Date value) {
            addCriterion("update_after_member_end_time =", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeNotEqualTo(Date value) {
            addCriterion("update_after_member_end_time <>", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeGreaterThan(Date value) {
            addCriterion("update_after_member_end_time >", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_after_member_end_time >=", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeLessThan(Date value) {
            addCriterion("update_after_member_end_time <", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_after_member_end_time <=", value, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeIn(List<Date> values) {
            addCriterion("update_after_member_end_time in", values, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeNotIn(List<Date> values) {
            addCriterion("update_after_member_end_time not in", values, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeBetween(Date value1, Date value2) {
            addCriterion("update_after_member_end_time between", value1, value2, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andUpdateAfterMemberEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_after_member_end_time not between", value1, value2, "updateAfterMemberEndTime");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceIsNull() {
            addCriterion("money_price is null");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceIsNotNull() {
            addCriterion("money_price is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceEqualTo(BigDecimal value) {
            addCriterion("money_price =", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceNotEqualTo(BigDecimal value) {
            addCriterion("money_price <>", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceGreaterThan(BigDecimal value) {
            addCriterion("money_price >", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("money_price >=", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceLessThan(BigDecimal value) {
            addCriterion("money_price <", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("money_price <=", value, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceIn(List<BigDecimal> values) {
            addCriterion("money_price in", values, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceNotIn(List<BigDecimal> values) {
            addCriterion("money_price not in", values, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money_price between", value1, value2, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andMoneyPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money_price not between", value1, value2, "moneyPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceIsNull() {
            addCriterion("integration_price is null");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceIsNotNull() {
            addCriterion("integration_price is not null");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceEqualTo(Integer value) {
            addCriterion("integration_price =", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceNotEqualTo(Integer value) {
            addCriterion("integration_price <>", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceGreaterThan(Integer value) {
            addCriterion("integration_price >", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("integration_price >=", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceLessThan(Integer value) {
            addCriterion("integration_price <", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceLessThanOrEqualTo(Integer value) {
            addCriterion("integration_price <=", value, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceIn(List<Integer> values) {
            addCriterion("integration_price in", values, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceNotIn(List<Integer> values) {
            addCriterion("integration_price not in", values, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceBetween(Integer value1, Integer value2) {
            addCriterion("integration_price between", value1, value2, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andIntegrationPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("integration_price not between", value1, value2, "integrationPrice");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIsNull() {
            addCriterion("buy_type is null");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIsNotNull() {
            addCriterion("buy_type is not null");
            return (Criteria) this;
        }

        public Criteria andBuyTypeEqualTo(Integer value) {
            addCriterion("buy_type =", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotEqualTo(Integer value) {
            addCriterion("buy_type <>", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeGreaterThan(Integer value) {
            addCriterion("buy_type >", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_type >=", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeLessThan(Integer value) {
            addCriterion("buy_type <", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeLessThanOrEqualTo(Integer value) {
            addCriterion("buy_type <=", value, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeIn(List<Integer> values) {
            addCriterion("buy_type in", values, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotIn(List<Integer> values) {
            addCriterion("buy_type not in", values, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeBetween(Integer value1, Integer value2) {
            addCriterion("buy_type between", value1, value2, "buyType");
            return (Criteria) this;
        }

        public Criteria andBuyTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_type not between", value1, value2, "buyType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIsNull() {
            addCriterion("open_type is null");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIsNotNull() {
            addCriterion("open_type is not null");
            return (Criteria) this;
        }

        public Criteria andOpenTypeEqualTo(Integer value) {
            addCriterion("open_type =", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotEqualTo(Integer value) {
            addCriterion("open_type <>", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeGreaterThan(Integer value) {
            addCriterion("open_type >", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("open_type >=", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeLessThan(Integer value) {
            addCriterion("open_type <", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeLessThanOrEqualTo(Integer value) {
            addCriterion("open_type <=", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIn(List<Integer> values) {
            addCriterion("open_type in", values, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotIn(List<Integer> values) {
            addCriterion("open_type not in", values, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeBetween(Integer value1, Integer value2) {
            addCriterion("open_type between", value1, value2, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("open_type not between", value1, value2, "openType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}